package com.example.logger.activity;

import android.app.Application;

import com.example.logger.BuildConfig;
import com.example.logger.logger.AndroidLogAdapter;
import com.example.logger.logger.Logger;


public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        Logger.addLogAdapter(new AndroidLogAdapter() {
            @Override
            public boolean isLoggable(int priority, String tag) {
                return BuildConfig.DEBUG;
            }
        });


    }
}
